3.156 \(\int \frac {a+c x^2}{2+3 x^4} \, dx\)

Optimal. Leaf size=141 \[ -\frac {\left (\sqrt {6} a-2 c\right ) \log \left (3 x^2-6^{3/4} x+\sqrt {6}\right )}{8\ 6^{3/4}}+\frac {\left (\sqrt {6} a-2 c\right ) \log \left (3 x^2+6^{3/4} x+\sqrt {6}\right )}{8\ 6^{3/4}}-\frac {\left (\sqrt {6} a+2 c\right ) \tan ^{-1}\left (1-\sqrt [4]{6} x\right )}{4\ 6^{3/4}}+\frac {\left (\sqrt {6} a+2 c\right ) \tan ^{-1}\left (\sqrt [4]{6} x+1\right )}{4\ 6^{3/4}} \]

[Out]

-1/48*ln(-6^(3/4)*x+3*x^2+6^(1/2))*(-2*c+a*6^(1/2))*6^(1/4)+1/48*ln(6^(3/4)*x+3*x^2+6^(1/2))*(-2*c+a*6^(1/2))*
6^(1/4)+1/24*arctan(-1+6^(1/4)*x)*(2*c+a*6^(1/2))*6^(1/4)+1/24*arctan(1+6^(1/4)*x)*(2*c+a*6^(1/2))*6^(1/4)

________________________________________________________________________________________

Rubi [A]  time = 0.10, antiderivative size = 141, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 6, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.353, Rules used = {1168, 1162, 617, 204, 1165, 628} \[ -\frac {\left (\sqrt {6} a-2 c\right ) \log \left (3 x^2-6^{3/4} x+\sqrt {6}\right )}{8\ 6^{3/4}}+\frac {\left (\sqrt {6} a-2 c\right ) \log \left (3 x^2+6^{3/4} x+\sqrt {6}\right )}{8\ 6^{3/4}}-\frac {\left (\sqrt {6} a+2 c\right ) \tan ^{-1}\left (1-\sqrt [4]{6} x\right )}{4\ 6^{3/4}}+\frac {\left (\sqrt {6} a+2 c\right ) \tan ^{-1}\left (\sqrt [4]{6} x+1\right )}{4\ 6^{3/4}} \]

Antiderivative was successfully verified.

[In]

Int[(a + c*x^2)/(2 + 3*x^4),x]

[Out]

-((Sqrt[6]*a + 2*c)*ArcTan[1 - 6^(1/4)*x])/(4*6^(3/4)) + ((Sqrt[6]*a + 2*c)*ArcTan[1 + 6^(1/4)*x])/(4*6^(3/4))
 - ((Sqrt[6]*a - 2*c)*Log[Sqrt[6] - 6^(3/4)*x + 3*x^2])/(8*6^(3/4)) + ((Sqrt[6]*a - 2*c)*Log[Sqrt[6] + 6^(3/4)
*x + 3*x^2])/(8*6^(3/4))

Rule 204

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> -Simp[ArcTan[(Rt[-b, 2]*x)/Rt[-a, 2]]/(Rt[-a, 2]*Rt[-b, 2]), x] /
; FreeQ[{a, b}, x] && PosQ[a/b] && (LtQ[a, 0] || LtQ[b, 0])

Rule 617

Int[((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> With[{q = 1 - 4*Simplify[(a*c)/b^2]}, Dist[-2/b, Sub
st[Int[1/(q - x^2), x], x, 1 + (2*c*x)/b], x] /; RationalQ[q] && (EqQ[q^2, 1] ||  !RationalQ[b^2 - 4*a*c])] /;
 FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]

Rule 628

Int[((d_) + (e_.)*(x_))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Simp[(d*Log[RemoveContent[a + b*x +
c*x^2, x]])/b, x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[2*c*d - b*e, 0]

Rule 1162

Int[((d_) + (e_.)*(x_)^2)/((a_) + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[(2*d)/e, 2]}, Dist[e/(2*c), Int[1/S
imp[d/e + q*x + x^2, x], x], x] + Dist[e/(2*c), Int[1/Simp[d/e - q*x + x^2, x], x], x]] /; FreeQ[{a, c, d, e},
 x] && EqQ[c*d^2 - a*e^2, 0] && PosQ[d*e]

Rule 1165

Int[((d_) + (e_.)*(x_)^2)/((a_) + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[(-2*d)/e, 2]}, Dist[e/(2*c*q), Int[
(q - 2*x)/Simp[d/e + q*x - x^2, x], x], x] + Dist[e/(2*c*q), Int[(q + 2*x)/Simp[d/e - q*x - x^2, x], x], x]] /
; FreeQ[{a, c, d, e}, x] && EqQ[c*d^2 - a*e^2, 0] && NegQ[d*e]

Rule 1168

Int[((d_) + (e_.)*(x_)^2)/((a_) + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[a*c, 2]}, Dist[(d*q + a*e)/(2*a*c),
 Int[(q + c*x^2)/(a + c*x^4), x], x] + Dist[(d*q - a*e)/(2*a*c), Int[(q - c*x^2)/(a + c*x^4), x], x]] /; FreeQ
[{a, c, d, e}, x] && NeQ[c*d^2 + a*e^2, 0] && NeQ[c*d^2 - a*e^2, 0] && NegQ[-(a*c)]

Rubi steps

\begin {align*} \int \frac {a+c x^2}{2+3 x^4} \, dx &=\frac {1}{12} \left (\sqrt {6} a-2 c\right ) \int \frac {\sqrt {6}-3 x^2}{2+3 x^4} \, dx+\frac {1}{12} \left (\sqrt {6} a+2 c\right ) \int \frac {\sqrt {6}+3 x^2}{2+3 x^4} \, dx\\ &=-\frac {\left (\sqrt {6} a-2 c\right ) \int \frac {\frac {2^{3/4}}{\sqrt [4]{3}}+2 x}{-\sqrt {\frac {2}{3}}-\frac {2^{3/4} x}{\sqrt [4]{3}}-x^2} \, dx}{8\ 6^{3/4}}-\frac {\left (\sqrt {6} a-2 c\right ) \int \frac {\frac {2^{3/4}}{\sqrt [4]{3}}-2 x}{-\sqrt {\frac {2}{3}}+\frac {2^{3/4} x}{\sqrt [4]{3}}-x^2} \, dx}{8\ 6^{3/4}}+\frac {1}{24} \left (\sqrt {6} a+2 c\right ) \int \frac {1}{\sqrt {\frac {2}{3}}-\frac {2^{3/4} x}{\sqrt [4]{3}}+x^2} \, dx+\frac {1}{24} \left (\sqrt {6} a+2 c\right ) \int \frac {1}{\sqrt {\frac {2}{3}}+\frac {2^{3/4} x}{\sqrt [4]{3}}+x^2} \, dx\\ &=-\frac {\left (\sqrt {6} a-2 c\right ) \log \left (\sqrt {6}-6^{3/4} x+3 x^2\right )}{8\ 6^{3/4}}+\frac {\left (\sqrt {6} a-2 c\right ) \log \left (\sqrt {6}+6^{3/4} x+3 x^2\right )}{8\ 6^{3/4}}+\frac {\left (\sqrt {6} a+2 c\right ) \operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\sqrt [4]{6} x\right )}{4\ 6^{3/4}}-\frac {\left (\sqrt {6} a+2 c\right ) \operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\sqrt [4]{6} x\right )}{4\ 6^{3/4}}\\ &=-\frac {\left (\sqrt {6} a+2 c\right ) \tan ^{-1}\left (1-\sqrt [4]{6} x\right )}{4\ 6^{3/4}}+\frac {\left (\sqrt {6} a+2 c\right ) \tan ^{-1}\left (1+\sqrt [4]{6} x\right )}{4\ 6^{3/4}}-\frac {\left (\sqrt {6} a-2 c\right ) \log \left (\sqrt {6}-6^{3/4} x+3 x^2\right )}{8\ 6^{3/4}}+\frac {\left (\sqrt {6} a-2 c\right ) \log \left (\sqrt {6}+6^{3/4} x+3 x^2\right )}{8\ 6^{3/4}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.06, size = 113, normalized size = 0.80 \[ \frac {-\left (\sqrt {6} a-2 c\right ) \left (\log \left (\sqrt {6} x^2-2 \sqrt [4]{6} x+2\right )-\log \left (\sqrt {6} x^2+2 \sqrt [4]{6} x+2\right )\right )-2 \left (\sqrt {6} a+2 c\right ) \tan ^{-1}\left (1-\sqrt [4]{6} x\right )+2 \left (\sqrt {6} a+2 c\right ) \tan ^{-1}\left (\sqrt [4]{6} x+1\right )}{8\ 6^{3/4}} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + c*x^2)/(2 + 3*x^4),x]

[Out]

(-2*(Sqrt[6]*a + 2*c)*ArcTan[1 - 6^(1/4)*x] + 2*(Sqrt[6]*a + 2*c)*ArcTan[1 + 6^(1/4)*x] - (Sqrt[6]*a - 2*c)*(L
og[2 - 2*6^(1/4)*x + Sqrt[6]*x^2] - Log[2 + 2*6^(1/4)*x + Sqrt[6]*x^2]))/(8*6^(3/4))

________________________________________________________________________________________

fricas [B]  time = 0.75, size = 2278, normalized size = 16.16 \[ \text {result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^2+a)/(3*x^4+2),x, algorithm="fricas")

[Out]

1/144*(2*sqrt(6)*sqrt(2)*(54*a^4 + 72*a^2*c^2 + 24*c^4)^(3/4)*sqrt(9*a^4 - 12*a^2*c^2 + 4*c^4)*sqrt((9*a^4 + 1
2*a^2*c^2 + 4*c^4 + 2*sqrt(54*a^4 + 72*a^2*c^2 + 24*c^4)*a*c)/(9*a^4 - 12*a^2*c^2 + 4*c^4))*arctan(-1/12*(sqrt
(2)*sqrt(1/3)*(54*a^4 + 72*a^2*c^2 + 24*c^4)^(3/4)*(sqrt(6)*sqrt(54*a^4 + 72*a^2*c^2 + 24*c^4)*sqrt(9*a^4 - 12
*a^2*c^2 + 4*c^4)*a - 2*sqrt(6)*sqrt(9*a^4 - 12*a^2*c^2 + 4*c^4)*(3*a^2*c + 2*c^3))*sqrt((9*a^4 + 12*a^2*c^2 +
 4*c^4 + 2*sqrt(54*a^4 + 72*a^2*c^2 + 24*c^4)*a*c)/(9*a^4 - 12*a^2*c^2 + 4*c^4))*sqrt((3*(9*a^4 + 12*a^2*c^2 +
 4*c^4)*x^2 + sqrt(2)*(54*a^4 + 72*a^2*c^2 + 24*c^4)^(1/4)*(sqrt(54*a^4 + 72*a^2*c^2 + 24*c^4)*c*x - 3*(3*a^3
+ 2*a*c^2)*x)*sqrt((9*a^4 + 12*a^2*c^2 + 4*c^4 + 2*sqrt(54*a^4 + 72*a^2*c^2 + 24*c^4)*a*c)/(9*a^4 - 12*a^2*c^2
 + 4*c^4)) + sqrt(54*a^4 + 72*a^2*c^2 + 24*c^4)*(3*a^2 + 2*c^2))/(9*a^4 + 12*a^2*c^2 + 4*c^4)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2*c^2 + 4*c^4 + 2*sqrt(54*a^4 + 72*a^2*c^2
+ 24*c^4)*a*c)/(9*a^4 - 12*a^2*c^2 + 4*c^4)) + sqrt(54*a^4 + 72*a^2*c^2 + 24*c^4)*(3*a^2 + 2*c^2)) + 3*sqrt(2)
*(54*a^4 + 72*a^2*c^2 + 24*c^4)^(1/4)*(9*a^4 + 12*a^2*c^2 + 4*c^4 - 2*sqrt(54*a^4 + 72*a^2*c^2 + 24*c^4)*a*c)*
sqrt((9*a^4 + 12*a^2*c^2 + 4*c^4 + 2*sqrt(54*a^4 + 72*a^2*c^2 + 24*c^4)*a*c)/(9*a^4 - 12*a^2*c^2 + 4*c^4))*log
(3*(9*a^4 + 12*a^2*c^2 + 4*c^4)*x^2 - sqrt(2)*(54*a^4 + 72*a^2*c^2 + 24*c^4)^(1/4)*(sqrt(54*a^4 + 72*a^2*c^2 +
 24*c^4)*c*x - 3*(3*a^3 + 2*a*c^2)*x)*sqrt((9*a^4 + 12*a^2*c^2 + 4*c^4 + 2*sqrt(54*a^4 + 72*a^2*c^2 + 24*c^4)*
a*c)/(9*a^4 - 12*a^2*c^2 + 4*c^4)) + sqrt(54*a^4 + 72*a^2*c^2 + 24*c^4)*(3*a^2 + 2*c^2)))/(9*a^4 + 12*a^2*c^2
+ 4*c^4)

________________________________________________________________________________________

giac [A]  time = 0.20, size = 131, normalized size = 0.93 \[ \frac {1}{24} \, {\left (6^{\frac {3}{4}} a + 2 \cdot 6^{\frac {1}{4}} c\right )} \arctan \left (\frac {3}{4} \, \sqrt {2} \left (\frac {2}{3}\right )^{\frac {3}{4}} {\left (2 \, x + \sqrt {2} \left (\frac {2}{3}\right )^{\frac {1}{4}}\right )}\right ) + \frac {1}{24} \, {\left (6^{\frac {3}{4}} a + 2 \cdot 6^{\frac {1}{4}} c\right )} \arctan \left (\frac {3}{4} \, \sqrt {2} \left (\frac {2}{3}\right )^{\frac {3}{4}} {\left (2 \, x - \sqrt {2} \left (\frac {2}{3}\right )^{\frac {1}{4}}\right )}\right ) + \frac {1}{48} \, {\left (6^{\frac {3}{4}} a - 2 \cdot 6^{\frac {1}{4}} c\right )} \log \left (x^{2} + \sqrt {2} \left (\frac {2}{3}\right )^{\frac {1}{4}} x + \sqrt {\frac {2}{3}}\right ) - \frac {1}{48} \, {\left (6^{\frac {3}{4}} a - 2 \cdot 6^{\frac {1}{4}} c\right )} \log \left (x^{2} - \sqrt {2} \left (\frac {2}{3}\right )^{\frac {1}{4}} x + \sqrt {\frac {2}{3}}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^2+a)/(3*x^4+2),x, algorithm="giac")

[Out]

1/24*(6^(3/4)*a + 2*6^(1/4)*c)*arctan(3/4*sqrt(2)*(2/3)^(3/4)*(2*x + sqrt(2)*(2/3)^(1/4))) + 1/24*(6^(3/4)*a +
 2*6^(1/4)*c)*arctan(3/4*sqrt(2)*(2/3)^(3/4)*(2*x - sqrt(2)*(2/3)^(1/4))) + 1/48*(6^(3/4)*a - 2*6^(1/4)*c)*log
(x^2 + sqrt(2)*(2/3)^(1/4)*x + sqrt(2/3)) - 1/48*(6^(3/4)*a - 2*6^(1/4)*c)*log(x^2 - sqrt(2)*(2/3)^(1/4)*x + s
qrt(2/3))

________________________________________________________________________________________

maple [B]  time = 0.04, size = 226, normalized size = 1.60 \[ \frac {\sqrt {3}\, 6^{\frac {1}{4}} \sqrt {2}\, a \arctan \left (\frac {\sqrt {2}\, \sqrt {3}\, 6^{\frac {3}{4}} x}{6}-1\right )}{24}+\frac {\sqrt {3}\, 6^{\frac {1}{4}} \sqrt {2}\, a \arctan \left (\frac {\sqrt {2}\, \sqrt {3}\, 6^{\frac {3}{4}} x}{6}+1\right )}{24}+\frac {\sqrt {3}\, 6^{\frac {1}{4}} \sqrt {2}\, a \ln \left (\frac {x^{2}+\frac {\sqrt {3}\, 6^{\frac {1}{4}} \sqrt {2}\, x}{3}+\frac {\sqrt {6}}{3}}{x^{2}-\frac {\sqrt {3}\, 6^{\frac {1}{4}} \sqrt {2}\, x}{3}+\frac {\sqrt {6}}{3}}\right )}{48}+\frac {\sqrt {3}\, 6^{\frac {3}{4}} \sqrt {2}\, c \arctan \left (\frac {\sqrt {2}\, \sqrt {3}\, 6^{\frac {3}{4}} x}{6}-1\right )}{72}+\frac {\sqrt {3}\, 6^{\frac {3}{4}} \sqrt {2}\, c \arctan \left (\frac {\sqrt {2}\, \sqrt {3}\, 6^{\frac {3}{4}} x}{6}+1\right )}{72}+\frac {\sqrt {3}\, 6^{\frac {3}{4}} \sqrt {2}\, c \ln \left (\frac {x^{2}-\frac {\sqrt {3}\, 6^{\frac {1}{4}} \sqrt {2}\, x}{3}+\frac {\sqrt {6}}{3}}{x^{2}+\frac {\sqrt {3}\, 6^{\frac {1}{4}} \sqrt {2}\, x}{3}+\frac {\sqrt {6}}{3}}\right )}{144} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c*x^2+a)/(3*x^4+2),x)

[Out]

1/24*3^(1/2)*6^(1/4)*2^(1/2)*a*arctan(1/6*2^(1/2)*3^(1/2)*6^(3/4)*x+1)+1/24*3^(1/2)*6^(1/4)*2^(1/2)*a*arctan(1
/6*2^(1/2)*3^(1/2)*6^(3/4)*x-1)+1/48*3^(1/2)*6^(1/4)*2^(1/2)*a*ln((x^2+1/3*3^(1/2)*6^(1/4)*2^(1/2)*x+1/3*6^(1/
2))/(x^2-1/3*3^(1/2)*6^(1/4)*2^(1/2)*x+1/3*6^(1/2)))+1/72*3^(1/2)*6^(3/4)*2^(1/2)*c*arctan(1/6*2^(1/2)*3^(1/2)
*6^(3/4)*x+1)+1/72*3^(1/2)*6^(3/4)*2^(1/2)*c*arctan(1/6*2^(1/2)*3^(1/2)*6^(3/4)*x-1)+1/144*3^(1/2)*6^(3/4)*2^(
1/2)*c*ln((x^2-1/3*3^(1/2)*6^(1/4)*2^(1/2)*x+1/3*6^(1/2))/(x^2+1/3*3^(1/2)*6^(1/4)*2^(1/2)*x+1/3*6^(1/2)))

________________________________________________________________________________________

maxima [A]  time = 3.04, size = 167, normalized size = 1.18 \[ \frac {1}{24} \cdot 3^{\frac {1}{4}} 2^{\frac {3}{4}} {\left (\sqrt {3} a + \sqrt {2} c\right )} \arctan \left (\frac {1}{6} \cdot 3^{\frac {3}{4}} 2^{\frac {1}{4}} {\left (2 \, \sqrt {3} x + 3^{\frac {1}{4}} 2^{\frac {3}{4}}\right )}\right ) + \frac {1}{24} \cdot 3^{\frac {1}{4}} 2^{\frac {3}{4}} {\left (\sqrt {3} a + \sqrt {2} c\right )} \arctan \left (\frac {1}{6} \cdot 3^{\frac {3}{4}} 2^{\frac {1}{4}} {\left (2 \, \sqrt {3} x - 3^{\frac {1}{4}} 2^{\frac {3}{4}}\right )}\right ) + \frac {1}{48} \cdot 3^{\frac {1}{4}} 2^{\frac {3}{4}} {\left (\sqrt {3} a - \sqrt {2} c\right )} \log \left (\sqrt {3} x^{2} + 3^{\frac {1}{4}} 2^{\frac {3}{4}} x + \sqrt {2}\right ) - \frac {1}{48} \cdot 3^{\frac {1}{4}} 2^{\frac {3}{4}} {\left (\sqrt {3} a - \sqrt {2} c\right )} \log \left (\sqrt {3} x^{2} - 3^{\frac {1}{4}} 2^{\frac {3}{4}} x + \sqrt {2}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^2+a)/(3*x^4+2),x, algorithm="maxima")

[Out]

1/24*3^(1/4)*2^(3/4)*(sqrt(3)*a + sqrt(2)*c)*arctan(1/6*3^(3/4)*2^(1/4)*(2*sqrt(3)*x + 3^(1/4)*2^(3/4))) + 1/2
4*3^(1/4)*2^(3/4)*(sqrt(3)*a + sqrt(2)*c)*arctan(1/6*3^(3/4)*2^(1/4)*(2*sqrt(3)*x - 3^(1/4)*2^(3/4))) + 1/48*3
^(1/4)*2^(3/4)*(sqrt(3)*a - sqrt(2)*c)*log(sqrt(3)*x^2 + 3^(1/4)*2^(3/4)*x + sqrt(2)) - 1/48*3^(1/4)*2^(3/4)*(
sqrt(3)*a - sqrt(2)*c)*log(sqrt(3)*x^2 - 3^(1/4)*2^(3/4)*x + sqrt(2))

________________________________________________________________________________________

mupad [B]  time = 5.11, size = 315, normalized size = 2.23 \[ -2\,\mathrm {atanh}\left (\frac {216\,a^2\,x\,\sqrt {-\frac {1{}\mathrm {i}\,\sqrt {6}\,a^2}{192}-\frac {a\,c}{48}+\frac {1{}\mathrm {i}\,\sqrt {6}\,c^2}{288}}}{9{}\mathrm {i}\,\sqrt {6}\,a^3+18\,a^2\,c-6{}\mathrm {i}\,\sqrt {6}\,a\,c^2-12\,c^3}-\frac {144\,c^2\,x\,\sqrt {-\frac {1{}\mathrm {i}\,\sqrt {6}\,a^2}{192}-\frac {a\,c}{48}+\frac {1{}\mathrm {i}\,\sqrt {6}\,c^2}{288}}}{9{}\mathrm {i}\,\sqrt {6}\,a^3+18\,a^2\,c-6{}\mathrm {i}\,\sqrt {6}\,a\,c^2-12\,c^3}\right )\,\sqrt {-\frac {1{}\mathrm {i}\,\sqrt {6}\,a^2}{192}-\frac {a\,c}{48}+\frac {1{}\mathrm {i}\,\sqrt {6}\,c^2}{288}}+2\,\mathrm {atanh}\left (\frac {216\,a^2\,x\,\sqrt {\frac {1{}\mathrm {i}\,\sqrt {6}\,a^2}{192}-\frac {a\,c}{48}-\frac {1{}\mathrm {i}\,\sqrt {6}\,c^2}{288}}}{9{}\mathrm {i}\,\sqrt {6}\,a^3-18\,a^2\,c-6{}\mathrm {i}\,\sqrt {6}\,a\,c^2+12\,c^3}-\frac {144\,c^2\,x\,\sqrt {\frac {1{}\mathrm {i}\,\sqrt {6}\,a^2}{192}-\frac {a\,c}{48}-\frac {1{}\mathrm {i}\,\sqrt {6}\,c^2}{288}}}{9{}\mathrm {i}\,\sqrt {6}\,a^3-18\,a^2\,c-6{}\mathrm {i}\,\sqrt {6}\,a\,c^2+12\,c^3}\right )\,\sqrt {\frac {1{}\mathrm {i}\,\sqrt {6}\,a^2}{192}-\frac {a\,c}{48}-\frac {1{}\mathrm {i}\,\sqrt {6}\,c^2}{288}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + c*x^2)/(3*x^4 + 2),x)

[Out]

2*atanh((216*a^2*x*((6^(1/2)*a^2*1i)/192 - (a*c)/48 - (6^(1/2)*c^2*1i)/288)^(1/2))/(6^(1/2)*a^3*9i - 18*a^2*c
+ 12*c^3 - 6^(1/2)*a*c^2*6i) - (144*c^2*x*((6^(1/2)*a^2*1i)/192 - (a*c)/48 - (6^(1/2)*c^2*1i)/288)^(1/2))/(6^(
1/2)*a^3*9i - 18*a^2*c + 12*c^3 - 6^(1/2)*a*c^2*6i))*((6^(1/2)*a^2*1i)/192 - (a*c)/48 - (6^(1/2)*c^2*1i)/288)^
(1/2) - 2*atanh((216*a^2*x*((6^(1/2)*c^2*1i)/288 - (6^(1/2)*a^2*1i)/192 - (a*c)/48)^(1/2))/(6^(1/2)*a^3*9i + 1
8*a^2*c - 12*c^3 - 6^(1/2)*a*c^2*6i) - (144*c^2*x*((6^(1/2)*c^2*1i)/288 - (6^(1/2)*a^2*1i)/192 - (a*c)/48)^(1/
2))/(6^(1/2)*a^3*9i + 18*a^2*c - 12*c^3 - 6^(1/2)*a*c^2*6i))*((6^(1/2)*c^2*1i)/288 - (6^(1/2)*a^2*1i)/192 - (a
*c)/48)^(1/2)

________________________________________________________________________________________

sympy [A]  time = 0.57, size = 68, normalized size = 0.48 \[ \operatorname {RootSum} {\left (55296 t^{4} + 2304 t^{2} a c + 9 a^{4} + 12 a^{2} c^{2} + 4 c^{4}, \left (t \mapsto t \log {\left (x + \frac {- 4608 t^{3} c + 72 t a^{3} - 144 t a c^{2}}{9 a^{4} - 4 c^{4}} \right )} \right )\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x**2+a)/(3*x**4+2),x)

[Out]

RootSum(55296*_t**4 + 2304*_t**2*a*c + 9*a**4 + 12*a**2*c**2 + 4*c**4, Lambda(_t, _t*log(x + (-4608*_t**3*c +
72*_t*a**3 - 144*_t*a*c**2)/(9*a**4 - 4*c**4))))

________________________________________________________________________________________